import request from '@/utils/request'

// 查询类别列表
export function listBookClass(params) {
    return request({
        url: '/bookClass/list',
        method: 'get',
        params
    })
}

// 添加类别
export function addBookClass(data) {
    return request({
        url: '/bookClass/add',
        method: 'post',
        data
    })
}

// 修改类别
export function updateBookClass(data) {
    return request({
        url: '/bookClass/update',
        method: 'post',
        data
    })
}

// 删除类别
export function deleteBookClass(params) {
    return request({
        url: '/bookClass/delete?ids=' + params,
        method: 'get'
    })
}


